package com.example.myapplication;

import android.os.Bundle;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;

/**
 *
 */
public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        WeekTimeView weekTimeView = findViewById(R.id.weekTimeView);
        weekTimeView.setOnCheckedChangeListener(new WeekTimeView.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(WeekTimeView.Item item) {
                Toast.makeText(getApplicationContext(), item.time + " - " + item.week, Toast.LENGTH_SHORT).show();
            }
        });
    }
}
